package com.movie.act;

import android.content.Context;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.movie.bean.PointList;
import com.movie.util.RoateUtil;

public class SeatSelectedAct extends BaseActivity {
	private Context mContext = SeatSelectedAct.this;
	private PointList mPointList = new PointList();

	private TextView gopayseat = null;
	private LinearLayout bottom = null;
	public   void release() { 
		gopayseat = null ;
		 if (bottom != null) {
		bottom.removeAllViews();
		bottom = null; }
		} 

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.seatselectedact);
		initBackTitleBar();
		printTable(mPointList);
		onClick();
		RoateUtil.tranlateTen(mContext, bottom);
	}

	private void onClick() {
		gopayseat = (TextView) findViewById(R.id.gopayseat);
		bottom = (LinearLayout) findViewById(R.id.bottom);
		gopayseat.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				Intent intent = new Intent(mContext, BuyMovieTicketAct.class);
				mContext.startActivity(intent);
			}
		});
		;
		bottom.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {

			}
		});
		;

	}
}
